RedDemandantesForms = function(){
	var itemsInGroupTipLicencia = [];
	var itemsInGroupDocumentos = [];
	var itemsInGroupTipoVehiculo = [];
	return{
		seccionControlDemandante: function(config){
				
				return {
					xtype: "form",
					id: "formRegistroDemandante",
					bodyPadding: "5 5 5 5",
					frame: true,
					layout: {
						type: "table",
						columns: 2,
						tableAttrs: {
							style: {width: "420px"},
							align: "center"
						}
					},
					defaults: Asg.Form.defaults({width: 410, labelAlign: "rigth"}),
					items:[
					       {
					    	   xtype: "numberfield",
					    	   id: "redDemandanteFolio",
					    	   name: "redDemandanteFolio",
					    	   fieldLabel: "No de Folio",
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   readOnly: true,
					    	   colspan: 2,
					    	   columWidth: 410,
					    	   value: config.demandante.redDemandanteFolio,
					    	   width: 225
					       },{
					    	   xtype: "datefield",
					    	   name: "redDemandanteFechaRegistro",
					    	   id: "redDemandanteFechaRegistro",
					    	   fieldLabel: "Fecha Registro",
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   readOnly: true,
					    	   width: 225,
					    	   colspan: 2,
					    	   columWidth: 410,
					    	   value: new Date(),
					    	   value: config.demandante.redDemandanteFechaRegistro,
					    	   submitFormat: "Ymd"
					       },{
					    	   xtype: "combo",
					    	   name: "ctgOficina.ctgOficinaId",
					    	   id: "ctgOficina",
					    	   fieldLabel: "Oficina",
					    	   colspan: 2,
					    	   width: 410,
					    	   columWidth: 410,
					    	   afterLabelTextTpl: Asg.constants.REQUIRED,
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   allowBlank:false,
					    	   value: config.demandante.ctgOficinaId,
					    	   store: new Ext.data.SimpleStore({
					    		   data: config.catalogos.ctgOficina || [],
					    		   fields: ["id","value"]
					    	   }),
					    	   valueField: "id",
					    	   displayField: "value"
					       },{
					    	   xtype: "combo",
					    	   name: "sgdUsuario.sgdUsuarioId",
					    	   id: "sgdUsuario",
					    	   fieldLabel: "Gestor(a) de Empleo",
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   colspan: 2,
					    	   width: 410,
					    	   columnWidth: 410,
					    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
					    	   allowBlank:false,
					    	   store: new Ext.data.SimpleStore({
					    		   data: config.catalogos.sgdUsuario || [],
					    		   fields: ["id","value"]
					    	   }),
					    	   valueField: "id",
					    	   value: config.demandante.sgdUsuarioId,
					    	   displayField: "value"
					       },{
					    	   xtype: "combo",
					    	   name: "ctgDocumento.ctgDocumentoId",
					    	   id: "ctgDocumento.ctgDocumentoId",
					    	   fieldLabel: "Identificaci\u00F3n",
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   width: 205,
					    	   columnWidth: 205,
					    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
					    	   allowBlank:false,
					    	   store: new Ext.data.SimpleStore({
					    		   data: config.catalogos.ctgDocumento || [], 
					    		   fields: ["id","value"]
					    	   }),
					    	   valueField: "id",
					    	   displayField: "value",
					    	   listeners: {
					    		   beforerender: function(){
					    			   var combo = Ext.getCmp('ctgDocumento.ctgDocumentoId');
					    			   combo.setValue(3);
					    		   }
					    	   },
					           value: config.demandante.ctgDocumentoId,
					    		   /*listeners: {
                                   change: function(){
                                           var comp = Ext.getCmp('ctgDocumentoId');
                                           Asg.message.alert(comp.getValue()); 
                                           
                                           if(comp.getValue()==3){//Si es igual a DUI
                                        	   //Agregar a campo de texto validacion de tipo Dui
                                        	   Asg.message.alert(comp.getValue()); 
                                        	   var doc = Ext.getCmp('redDemandanteNumeroDocumento');
                                        	   
                                           }
                                                                                      
                                       }
                              }*/
					       },{
					    	   xtype: "textfield",
					    	   name: "redDemandanteNumeroDocumento",
					    	   id: "redDemandanteNumeroDocumento",
					    	   value: config.demandante.redDemandanteNumeroDocumento,
					    	   fieldLabel: "N\u00FAmero",
					    	   afterLabelTextTpl:  Asg.constants.REQUIRED,
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   allowBlank: false,
					    	   labelWidth: 75,
					    	   width: 205,
					    	   columnWidth: 205,
					    	   vtype: 'docDemandante'
					       } 
					       ]
				};

		},
		datosPersonalesDemandante: function(config){
			var storeTipoLicencia = new Ext.data.SimpleStore({
				data: config.catalogos.ctgTipoLicencia || [],
				fields: ["id", "value"]
			});
		
			var storeDocumentosVigentes = new Ext.data.SimpleStore({
				data: config.catalogos.ctgDocumentoVigentes || [],
				fields: ["id", "value"]
			});
			storeDocumentosVigentes.each(function(record){
				itemsInGroupDocumentos.push({
					boxLabel: record.data.value,
					name: "ctgDocuementoVigente",
					inputValue: record.data.id
				});
			});
			var storeTipoVehiculo = new Ext.data.SimpleStore({
				data: config.catalogos.ctgTipoVehiculo || [],
				fields: ["id","value"]
			});
			storeTipoVehiculo.each(function(record){
				itemsInGroupTipoVehiculo.push({
					boxLabel: record.data.value,
					name: "redDemandante.ctgTipoVehiculo.ctgCatalogoId",
					inputValue: record.data.id
				});
			});
			return {
				xtype: "form",
				id: "formDatosPersonalesDemandante",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "DATOS PERSONALES",
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Nombre Completo",
	                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                	labelWidth: 125,
	                    layout: "hbox",
	                    combineErrors: true,
	                    afterLabelTextTpl:  Asg.constants.REQUIRED,
	                    defaultType: "textfield",
	                    defaults: {
	                        hideLabel: "true"
	                    },
	                    items: [{
	                        name: "redDemandanteNombres",
	                        id: "redDemandanteNombres",
	                        fieldLabel: "Nombres",
	                        flex: 2,
	                        emptyText: "Nombres",
	                        value: config.demandante.redDemandanteNombres,
	                        allowBlank: false,
	                        vtype:'letra' //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
	                    }, {
	                        name: "redDemandanteApellidos",
	                        id: "redDemandanteApellidos",
	                        fieldLabel: "Apellidos",
	                        flex: 3,
	                        margins: "0 0 0 6", 
	                        emptyText: "Apellidos",
	                        value: config.demandante.redDemandanteApellidos,
	                        allowBlank: false,
	                        vtype:'letra' //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
	                    }]
	                },{
	                	xtype: "fieldcontainer",
	                    layout: "hbox",
	                    combineErrors: true,
	                    items: [{
	                    	xtype: "combo",
	                    	vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
	                        id: "ctgDepartamentoId",
	                        name: "redDemandante.ctgDepartamentoNacimiento.ctgDepartamentoId",
	                        value: config.demandante.ctgDepartamentoNacimientoId,
	                        fieldLabel: "Departamento",
	                        afterLabelTextTpl:  Asg.constants.REQUIRED,
	                        labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                        width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	                        store: new Ext.data.SimpleStore({
	                        	data: config.catalogos.ctgDepartamentos || [],
	                        	fields: ["id", "value"]
	                        }),
	                        displayField: "value",
	                        valueField: "id",
	                        listeners: {
	                        	change: function(){
	                        		var currentValue = this.getValue();
	                        		if(!Ext.isEmpty(currentValue)){
	                        			var data = Asg.Combo.filter(currentValue, config.catalogos.ctgMunicipios, 2);
	                        			Asg.Combo.loadData("ctgMunicipioId", data, false);
	                        			Asg.Form.setRequired("ctgMunicipioId", true);
	                    			}else if(Ext.isEmpty(this.getValue())){
	                    				Asg.Combo.removeAll("ctgMunicipioId", false);
	                                    Asg.Form.setRequired("ctgMunicipioId", false);
	                                }
	                            }
	                        }
	                    },{
	                        xtype: "combo",
	                        vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
	                        id: "ctgMunicipioId",
	                        name: "redDemandante.ctgMunicipioNacimiento.ctgMunicipioId",
	                        value: config.demandante.ctgMunicipioNacimientoId,
	                        afterLabelTextTpl:  Asg.constants.REQUIRED,
	                        labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                        width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	                        fieldLabel: "Municipio",
	                        store: new Ext.data.SimpleStore({
	                        	data: [],
	                        	fields: ["id", "value"]
	                        }),
	                        displayField: "value",
	                        valueField: "id"
	                	}]
	                } ,{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	        	        	xtype: "datefield",
	        	        	id: "redDemandanteFechaNacimiento",
	        	        	name: "redDemandanteFechaNacimiento",
	        	        	fieldLabel: "Fecha de Nacimieno",
	        	        	afterLabelTextTpl:  Asg.constants.REQUIRED,
	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	        	        	allowBlank:false,
	        	        	width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	        	        	maxValue: new Date(),
	        	        	value: config.demandante.redDemandanteFechaNacimiento,
	        	        	submitFormat: "Ymd",
	        	        	listeners: {
	        	                change: function (v) {
	        	                	var today = new Date();
	        	                	var selectedDate = v.getValue();
	        	                	if(Date.yearsBetween(selectedDate, today)<18){
	        	                		Asg.Message.alert("La edad del demandante es menor a 18 años");
	        	                	}	        	                	
	        	                }
	        	            }
	        	        },{
	        	        	xtype: "combo",
	        	        	//vtype:'letraparentesis', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC	        	        	
	        	        	name: "redDemandante.ctgGenero.ctgCatalogoId",
	        	        	editable: false,
	        	        	id: "ctgGenero",
	        	        	fieldLabel: "Sexo",
	        	        	width: 205,
	        	        	labelWidth: 125,
	        	        	margins: "0 0 0 6", 
	        	        	flex: 1,
							afterLabelTextTpl:  Asg.constants.REQUIRED,
							labelStyle: Asg.constants.LABEL_STYLE_TEXT,
							allowBlank:false,
							store: new Ext.data.SimpleStore({
								data: config.catalogos.ctgGenero || [], 
								fields: ["id","value"]
							}),
							valueField: "id",
							displayField: "value",
							value: config.demandante.ctgGeneroId
	        	        }]
	                },{
	                	xtype: "combo",
	                	//vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
	                	editable: false,
                		name: "redDemandante.ctgEstadoCivil.ctgCatalogoId",
                		id: "ctgEstadoCivil",
                		fieldLabel: "Estado Civil",
                		allowBlank: false,
                		afterLabelTextTpl: Asg.constants.REQUIRED,
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		width: 300,
                		labelWidth: 125,
                		store: new Ext.data.SimpleStore({
                			data: config.catalogos.ctgEstadoCivil || [],
                			fields: ["id","value"]
                		}),
                		valueField: "id",
                		displayField: "value",
                		value: config.demandante.ctgEstadoCivilId
	                }//,{
//	                	xtype: "fieldcontainer",
//	                	layout: "hbox",
//	                	items:[{
//	        	        	xtype: "numberfield",
//	        	        	id: "redDemandantePeso",
//	        	        	name: "redDemandantePeso",
//	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,	
//	        	        	minValue: 0,
//	        	        	fieldLabel: "Peso (lbs)",
//	        	        	width: 200,
//	        	        	labelWidth: 125,
//	        	        	//emptyText: "lbs",
//	        	        	flex: 1,
//	        	        	value: config.demandante.redDemandantePeso
//	        	        },{
//	        	        	xtype: "numberfield",
//	        	        	name: "redDemandanteEstatura",
//	        	        	fieldLabel: "Estatura (cms)",
//	        	        	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
//	        	        	minValue: 0,
//	        	        	margins: "0 0 0 6", 
//	        	        	width: 205,
//	        	        	//emptyText: "cms",
//	        	        	labelWidth: 125,
//	        	        	flex: 1,
//	        	        	value: config.demandante.redDemandanteEstatura
//	        	        }]
	                ,{
                		xtype: "textfield",
                		name: "redDemandanteCorreo",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		fieldLabel: "Correo Electr\u00F3nico",
                		labelWidth: 125,
                		vtype: "email",
                		flex: 1,
                		value: config.demandante.redDemandanteCorreo
	                }]
	        	},{
	        		xtype: "fieldset",
	        		title: "DATOS DOMICILIO",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	                    	xtype: "radiogroup",
	                    	width: 280,
	                    	anchor: "none",
	                    	id: "redDemandanteZonaResidenciaId",
	                    	fieldLabel: "Zona Residencia",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	labelWidth: 125,
	                    	defaults: {
	                    		autoFlex: false
	                    	},
	                    	items:[{
	                    		inputValue: "1",
	                    		name: "redDemandante.redDemandanteZonaResidencia",
	                    		boxLabel: "Urbana",
	                    		checked: config.demandante.redDemandanteZonaResidencia == "1",
	                    		id: "residenciaUrbana",
	                    		listeners: {
	                    			beforerender: function(){
						    			   var radio = Ext.getCmp("residenciaUrbana");
						    			   radio.setValue(true);
						    		   }
	                    		}	
	                    	},{
	                    		inputValue: "2",
	                    		name: "redDemandante.redDemandanteZonaResidencia",
	                    		boxLabel: "Rural",
	                    		checked: config.demandante.redDemandanteZonaResidencia == "2"
	                    	}]
	                    }]
	                },{
                    	xtype: "textarea",
                    	fieldLabel: "Direcci\u00F3n Actual",
                    	name: "redDemandanteDireccion",
                    	labelWidth: 125,
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        flex: 1,
                        allowBlank: false,
                        value: config.demandante.redDemandanteDireccion
	                }]
	        	},{
	        		xtype: "fieldset",
	        		title: "OTROS DATOS",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteLicenciaId",
                    	labelWidth: 160,
                    	fieldLabel: "Licencia de Conducir",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
        	            listeners:{
        	            	change: function(el,val) {
                    			if(this.getValue()["redDemandanteLicencia"] == "1"){
                    				Ext.getCmp("containerClaseLicencia").show();
                    			}else{
                    				Ext.getCmp("containerClaseLicencia").hide();
                    			}
                    		}
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteLicencia",
                    		checked: config.demandante.redDemandanteLicencia == "0",
                    		boxLabel: "NO",
	                    	id: "licenciaNo",
	                    	listeners: {
	                    		beforerender: function(){
						    		   var radio = Ext.getCmp("licenciaNo");
						    		   radio.setValue(true);
						    	   }
	                    	}
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteLicencia",
                    		checked: config.demandante.redDemandanteLicencia == "1",
                    		boxLabel: "SI"
                    	}]
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	id: "containerClaseLicencia",
	                	hidden: true,
	                	items:[{
	                		xtype: "combo",
	                        id: "ctgTipoLicencia",
	                        name: "redDemandante.ctgTipoLicencia.ctgCatalogoId",
	                        value: config.demandante.ctgTipoLicenciaId,
	                        afterLabelTextTpl:  Asg.constants.REQUIRED,
	                        labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                        width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	                        fieldLabel: "Tipo Licencia",
	                        store: storeTipoLicencia,
	                        displayField: "value",
	                        valueField: "id"
	        	        }]
	                },{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteLicenciaArmaId",
                    	labelWidth: 160,
                    	fieldLabel: "Licencia Portaci\u00F3n de Armas",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteLicenciaArma",
                    		checked: config.demandante.redDemandanteLicencia == "0",
                    		boxLabel: "NO",
	                    	id: "licenciaArmaNo",
	                    	listeners: {
	                    		beforerender: function(){
						    		   var radio = Ext.getCmp("licenciaArmaNo");
						    		   radio.setValue(true);
						    	   }
	                    	}
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteLicenciaArma",
                    		checked: config.demandante.redDemandanteLicencia == "1",
                    		boxLabel: "SI"
                    	}]
	                },{
                		xtype:"checkboxgroup",
                		fieldLabel: "Documentos de Identidad",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		labelWidth: 200,
                		flex: 1,
                		columns: 1,
                		cls: 'x-check-group-alt',
        	            vertical: true,
        	        	defaults: {
        	        		style: "margin-right:15px"
        	        	},
                		items: config.redDocumentosDemandante
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	                    	xtype: "radiogroup",
	                    	width: 280,
	                    	anchor: "none",
	                    	id: "redDemandanteVehiculoId",
	                    	labelWidth: 160,
	                    	fieldLabel: "Veh\u00EDculo",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	defaults: {
	                    		autoFlex: false
	                    	},
	        	            listeners:{
	        	            	change: function(el,val) {
	                    			if(this.getValue()["redDemandanteVehiculo"] == "1"){
	                    				Ext.getCmp("containerTipoVehiculo").show();
	                    				Ext.getCmp("redDemandanteAnioVehiculo").show();
	                    			}else{
	                    				Ext.getCmp("containerTipoVehiculo").hide();
	                    				Ext.getCmp("redDemandanteAnioVehiculo").hide();
	                    			}
	                    		}
	                    	},
	                    	items:[{
	                    		inputValue: "0",
	                    		name: "redDemandanteVehiculo",
	                    		checked: config.demandante.redDemandanteVehiculo == "0",
	                    		boxLabel: "NO",
		                    	id: "vehiculoNo",
		                    	listeners: {
		                    		beforerender: function(){
							    		   var radio = Ext.getCmp("vehiculoNo");
							    		   radio.setValue(true);
							    	   }
		                    	}
	                    	},{
	                    		inputValue: "1",
	                    		name: "redDemandanteVehiculo",
	                    		checked: config.demandante.redDemandanteVehiculo == "1",
	                    		boxLabel: "SI"
	                    	}]
	                    },{
	                    	xtype: "numberfield",
	                    	hidden: true,
	                    	minValue: 0,
	                    	fieldLabel: "A\u00F1o del Veh\u00EDculo",
	                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    	width: 205	,
	                    	name: "redDemandanteAnioVehiculo",
	                    	value: config.demandante.redDemandanteAnioVehiculo,
	                    	id: "redDemandanteAnioVehiculo",
	                    	minLength: 4,
        	        		maxLength: 4,
        	        		allowDecimals: false,
        	        		minValue: 0 //prevents negative numbers
	                    }]
	                },{
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	id: "containerTipoVehiculo",
	                	hidden: true,
	                	items:[{
	                		xtype: "combo",
	                        id: "ctgTipoVehiculo",
	                        name: "redDemandante.ctgTipoVehiculo.ctgCatalogoId",
	                        value: config.demandante.ctgTipoVehiculoId,
	                        afterLabelTextTpl:  Asg.constants.REQUIRED,
	                        labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                        width: 200,
	        	        	labelWidth: 125,
	        	        	flex: 1,
	                        fieldLabel: "Tipo de Veh\u00EDculo",
	                        store: storeTipoVehiculo,
	                        displayField: "value",
	                        valueField: "id"
	                    }]
	                },{
                    	xtype: "radiogroup",
                    	width: 280,
                    	anchor: "none",
                    	id: "redDemandanteDiscapacidadId",
                    	labelWidth: 160,
                    	fieldLabel: "Tiene alguna discapacidad\u003F",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	listeners: {
                    		change: function(el,val) {
                    			if(this.getValue()["redDemandanteDiscapacidad"] == "1"){
                    				Asg.Message.alert("Debe llenar el modulo de discapacitados");
                    			}                    			
                    		}
                    	},
                    	items:[{
                    		inputValue: "0",
                    		name: "redDemandanteDiscapacidad",
                    		checked: config.demandante.redDemandanteDiscapacidad == "0",
                    		boxLabel: "NO",
	                    	id: "discapacidadNo",
	                    	listeners: {
	                    		beforerender: function(){
						    		   var radio = Ext.getCmp("discapacidadNo");
						    		   radio.setValue(true);
						    	   }
	                    	}
                    	},{
                    		inputValue: "1",
                    		name: "redDemandanteDiscapacidad",
                    		checked: config.demandante.redDemandanteDiscapacidad == "1",
                    		boxLabel: "SI"
                    	}]
	                },{
                    	xtype: "numberfield",
                    	hidde: true,
                    	fieldLabel: "N\u00FAmero de personas que dependen de usted",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 300,
                    	width: 360,
                    	minValue: 0,
                    	name: "redDemandanteDependientes",
                    	value: config.demandante.redDemandanteDependientes,
                    	id: "redDemandanteDependientes"
	                }//,{
//                    	xtype: "radiogroup",
//                    	width: 370,
//                    	anchor: "none",
//                    	id: "redDemandantePrivadoId",
//                    	labelWidth: 300,
//                    	fieldLabel: "Desea mantener sus datos en el an\u00F3nimato\u003F",
//                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
//                    	defaults: {
//                    		autoFlex: false
//                    	},
//                    	items:[{
//                    		inputValue: "0",
//                    		name: "redDemandantePrivado",
//                    		checked: config.demandante.redDemandantePrivado == "0",
//                    		boxLabel: "NO",
//	                    	id: "privadoNo",
//	                    	listeners: {
//	                    		beforerender: function(){
//						    		   var radio = Ext.getCmp("privadoNo");
//						    		   radio.setValue(true);
//						    	   }
//	                    	}
//                    	},{
//                    		inputValue: "1",
//                    		name: "redDemandantePrivado",
//                    		checked: config.demandante.redDemandantePrivado == "1",
//                    		boxLabel: "SI"
//                    	}]
	            //    }
	        	]
	               
	        	}]
			};
		},
		formacionAcademicaDemandante: function(config){
			return{
				id: "redFormacionPaso",
				border: false,
				xtype: "form",
				frame: true,
	        	autoScroll: true,
	        	items:[
					{
						xtype: "form",
						id: "redDemandanteFormacionAcademica",
						border: false,
						frame: true,
						bodyPadding: "5 5 5 5",
						layout: {
							type: "table",
							columns: 2,
							tableAttrs: {
					            style: {width: "615px", "margin-top": "5px;"},
					            align: "center"
							}
						},
						defaults: Asg.Form.defaults({labelAlign: "top", width: 300, allowBlank: false}),
						items: [
					    	{xtype: "label", text: "- Formaci\u00F3n Acad\u00E9mica -", cls: "x-form-item", style: "text-align: center; font-weight: bold", colspan: 2},
					    	{
					    		xtype: "combo",
					    		name: "redFormacionDemandante.ctgEscolaridad.ctgCatalogoId",
					    		id: "redFormacionDemandante.ctgEscolaridad.ctgCatalogoId",
					    		fieldLabel: "Escolaridad",
					    		store: new Ext.data.SimpleStore({
					    			data: config.catalogos.ctgEscolaridad || [],
					                fields: ["id", "value"]
					            }),
					            displayField: "value",
					            valueField: "id",
					            allowBlank: false,
					            listeners: {
						    		   beforerender: function(combo){
						    			   combo.setValue(84);
						    		   }
						    	   }
					    	},{
					    		xtype: "combo",
					    		name: "redFormacionDemandante.ctgEspecialidad.ctgCatalogoId",
					    		//editable:false,
					    		//allowBlank: true,
					    		fieldLabel: "Especialidad",
					    		store: new Ext.data.SimpleStore({
					    			data: config.catalogos.ctgEspecialidad || [],
					                fields: ["id", "value"]
					            }),
					            displayField: "value",
					            valueField: "id",
					            listeners: {
						    		   beforerender: function(combo){
						    			   combo.setValue(186);
						    		   }
						    	   }
					    	},{
					    		xtype: "textfield",
					    		name: "redFormacionDemandanteInstitucion",
					    		fieldLabel: "Instituci\u00F3n",
					    		colspan: 2,
					    		columWidth: 600,
					    		width: 580
					    	},{
					    		xtype: "grid",
					    		id: "redDemandanteFormacionAcademicaGrid",
					    		store: new Ext.data.SimpleStore({
					    			fields: [
										"redFormacionDemandanteId",
										"redFormacionDemandanteInstitucion",
										"ctgEscolaridadNombre",
										"ctgEspecialidadNombre",
										"ctgEscolaridadId"
									],
									data: config.redDemandanteFormacionAcademicaList || []
					    		}),
					    		columns: [
							          {
										   xtype: "actioncolumn",
										   width: 30,
										   hidden: false,
										   items: [
									        {
									     	   icon: Asg.constants.CONTEXT_PATH + "/resources/images/delete.png", 
									     	   iconCls: "icon", 
									     	   handler: function(grid, rowIndex, colIndex) {
									     		  RedDemandante.confirmProcess(grid, rowIndex, "redFormacionDemandanteId");
									     	   }
									        }
									    ]
									  },
							          {header: "Escolaridad", dataIndex: "ctgEscolaridadNombre", flex: 1},
							          {header: "Especialidad", dataIndex: "ctgEspecialidadNombre", flex: 1},
							          {header: "Intsticuci\u00F3n", dataIndex: "redFormacionDemandanteInstitucion", flex: 1}
							          
						        ],
						        tbar: [
					               "->",
					               {
					            	   text: "Nuevo",
					            	   iconCls: Asg.constants.ADD_ICON,
					            	   handler: function(){
					            		   RedDemandante.resetFormDetails("redDemandanteFormacionAcademica");
					            	   }
					               },{
					            	   text: "Guardar",
					            	   iconCls: Asg.constants.SAVE_ICON,
					            	   handler: function(){
					            		   RedDemandante.saveDetails("redDemandanteFormacionAcademica","redDemandanteFormacionAcademicaGrid");
					            	   }
					               }
					            ],
					    		width: 605,
					    		height: 200,
					    		colspan: 2
					    	}
						]
					},{
						xtype: "form",
						id: "redDemandanteIdiomaForm",
						border: false,
						frame: true,
						bodyPadding: "5 5 5 5",
						layout: {
							type: "table",
							columns: 2,
							tableAttrs: {
					            style: {width: "615px", "margin-top": "5px;"},
					            align: "center"
							}
						},
						defaults: Asg.Form.defaults({labelAlign: "top", width: 300, allowBlank: false}),
						items: [
					    	{xtype: "label", text: "- Idiamos Extranjeros -", cls: "x-form-item", style: "text-align: center; font-weight: bold", colspan: 2},
					    	{
					    		xtype: "combo",
					    		name: "redIdiomasDemandante.ctgIdioma.ctgCatalogoId",
					    		id: "redIdiomasDemandante.ctgIdioma.ctgCatalogoId",
					    		fieldLabel: "Idioma",
					    		store: new Ext.data.SimpleStore({
					    			data: config.catalogos.ctgIdioma || [],
					                fields: ["id", "value"]
					            }),
					            displayField: "value",
					            valueField: "id",
					            listeners: {
						    		   beforerender: function(combo){
						    			   combo.setValue(70);
						    		   }
						    	   }
					    	},{
					    		xtype: "combo",
					    		name: "redIdiomasDemandante.ctgNivel.ctgCatalogoId",
					    		fieldLabel: "Nivel",
					    		store: new Ext.data.SimpleStore({
					    			data: config.catalogos.ctgNivelIdioma || [],
					                fields: ["id", "value"]
					            }),
					            displayField: "value",
					            valueField: "id",
					            listeners: {
						    		   beforerender: function(combo){
						    			   combo.setValue(83);
						    		   }
						    	   }
					    	},{
					    		xtype: "grid",
					    		id: "redDemandanteIdiomaGrid",
					    		store: new Ext.data.SimpleStore({
					    			fields: [
										"redIdiomaDemandanteId",
										"ctgIdiomaNombre",
										"ctgNivelNombre",
										"ctgIdiomaId"
									],
									data: config.redDemandanteIdiomaList || []
					    		}),
					    		columns: [
							          {
										   xtype: "actioncolumn",
										   width: 30,
										   hidden: false,
										   items: [
									        {
									     	   icon: Asg.constants.CONTEXT_PATH + "/resources/images/delete.png", 
									     	   iconCls: "icon", 
									     	   handler: function(grid, rowIndex, colIndex) {
									     		  RedDemandante.confirmProcess(grid, rowIndex, "redIdiomaDemandanteId");
									     	   }
									        }
									    ]
									  },
							          {header: "Idioma", dataIndex: "ctgIdiomaNombre", flex: 1},
							          {header: "Nivel", dataIndex: "ctgNivelNombre", flex: 1}
						        ],
						        tbar: [
					               "->",
					               {
					            	   text: "Nuevo",
					            	   iconCls: Asg.constants.ADD_ICON,
					            	   handler: function(){
					            		   RedDemandante.resetFormDetails("redIdiomaDemandanteId");
					            	   }
					               },{
					            	   text: "Guardar",
					            	   iconCls: Asg.constants.SAVE_ICON,
					            	   handler: function(){
					            		   RedDemandante.saveDetails("redDemandanteIdiomaForm","redDemandanteIdiomaGrid");
					            	   }
					               }
					            ],
					    		width: 605,
					    		height: 200,
					    		colspan: 2
					    	}
						]
					}
    	        ]
			};
		},
		formacionConocimientosHabilidades: function(config){
			return {
				
			};
		},
		formacionPuestoyExpriencia: function(config){
			return {
				xtype: "form",
				id: "formPuestoBuscaExperiencia",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	items:[{
	        		xtype: "fieldset",
	        		title: "PUESTO QUE BUSCA Y EXPERIENCIA LABORAL", 
	        		layout: "anchor",
	        		colspan: 2,
	        		width: 650,
	        		defaults: Asg.Form.defaults({anchor: "100%",align: "center"}),
	                items: [{
	                	xtype: "hidden",
                		id: "ocupacionCodigo",
                		name: "ocupacion.ocupacionCodigo"
	                },{
	                	xtype: "triggerfield",
                		id: "ocupacionNombre",
                		fieldLabel: "Ocupacion",
                		name: "ocupacion.ocupacionNombre",
                		labelWidth: 150,
                		afterLabelTextTpl: Asg.constants.REQUIRED,
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		flex: 1,
                		triggerCls: "x-form-search-trigger",
                		onTriggerClick: function(){
                			LovOcupacion.windowLovOcupaciones();
                		}
                	},
	                {
	                	xtype: "fieldcontainer",
	                	layout: "hbox",
	                	items:[{
	                		xtype: "numericfield",
	                		fieldLabel: "Salario USD",
	                		allowBlank: false,
	                		name: "redPuestoBuscaDemandanteSalario",
	                		value: 0,
	                		afterLabelTextTpl: Asg.constants.REQUIRED,
	                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                		width: 300,
	        	        	labelWidth: 150
	                	}]
	                },
	                {
                    	xtype: "radiogroup",
                    	width: 300,
        	        	labelWidth: 200,
                    	anchor: "none",
                    	fieldLabel: "Posee Experiencia en el Puesto?",
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	defaults: {
                    		autoFlex: false
                    	},
                    	listeners: {
                    		change: function(el,val) {
                    			if(this.getValue()["redPuestoBuscaDemandanteExperiencia"] == "1"){
                    				Ext.getCmp("flsDetalleExperiencia").show();
                    			}else{
                    				Ext.getCmp("flsDetalleExperiencia").hide();
                    			}
                    		}
                    	},
                    	items:[{
                    		inputValue: "1",
                    		name: "redPuestoBuscaDemandanteExperiencia",
                    		boxLabel: "SI"
                    			
                    	},{
                    		inputValue: "0",
                    		name: "redPuestoBuscaDemandanteExperiencia",
                    		boxLabel: "NO"
                    	}]
		                
	                },{
	                	xtype: "fieldset",
	                	title: "Detalle de Experiencia",
	                	id: "flsDetalleExperiencia",
	                	hidden: true,
	                	width: 650,
		        		defaults: Asg.Form.defaults({anchor: "100%",align: "center"}),
	                	items:[
                	       {xtype:"hidden"},
                	       {xtype: "label", text: "- Si posee experiencia, debe ingresar obligatoriamente toda la informaci\u00F3n restante. -", cls: "x-form-item", style: "text-align: center; font-weight: bold", colspan: 2},
                	       {xtype:"hidden"},
                	       {
		                    	xtype: "radiogroup",
		                    	labelWidth: 200,
		                    	width: 315,
		                    	anchor: "none",
		                    	fieldLabel: "Es su Trabajo Actual?",
		                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
		                    	defaults: {
		                    		autoFlex: false
		                    	},
		                    	listeners: {
		                    		change: function(el,val) {
		                    			if(this.getValue()["redPuestoBuscaDemandanteActual"] == "1"){
		                    				Ext.getCmp("containerFechaFin").show();
		                    			}else{
		                    				Ext.getCmp("containerFechaFin").hide();
		                    			}
		                    		}
		                    	},
		                    	items:[{
		                    		inputValue: "0",
		                    		checked: true,
		                    		name: "redPuestoBuscaDemandanteActual",
		                    		boxLabel: "NO"
		                    	},{
		                    		inputValue: "1",
		                    		name: "redPuestoBuscaDemandanteActual",
		                    		boxLabel: "SI"
		                    	}]
			                },{
			                	xtype: "textfield",
			                	vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
			                	id: "redPuestoBuscaDemandanteEmpresa",
			                	fieldLabel: "Empresa",
		                		allowBlank: false,
		                		afterLabelTextTpl: Asg.constants.REQUIRED,
		                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
		                		flex: 1,
		                		labelWidth: 150
			                },{
			                	xtype: "fieldcontainer",
			                	fieldLabel: "Fecha Inicio",
			                	defaults: {
			                        hideLabel: "true"
			                    },
			                    layout: "hbox",
			                    combineErrors: true,
			                    afterLabelTextTpl:  Asg.constants.REQUIRED,
			                    labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			                    labelWidth: 150,
			                	items: [{
			                		xtype: "combo",
			                		width: 100,
			                        name: "redPuestoBuscaDemandanteFecIniMes",
			                        store: new Ext.data.SimpleStore({
			                        	data: Asg.Combo.monthOfYear() || [],
			                        	fields: ["id","value"]
			                        }),
			                        displayField: "value",
			                        valueField: "id"
			                	},{
			                		xtype: "combo",
			                		width: 55,
			                		name: "redPuestoBuscaDemandanteFecIniAnio",
			                        store: new Ext.data.SimpleStore({
			                        	data: Asg.Combo.yearsAgo() || [],
			                        	fields: ["anio"]
			                        }),
			                        displayField: "anio",
			                        valueField: "anio"
			                	}]
			                },{
			                	xtype: "fieldcontainer",
			                	fieldLabel: "Fecha Finalizaci\u00F3n",
			                	id: "containerFechaFin",
			                	hidden:true,
			                	defaults: {
			                        hideLabel: "true"
			                    },
			                    layout: "hbox",
			                    combineErrors: true,
			                    labelWidth: 150,
			                	items: [{
			                		xtype: "combo",
			                		width: 100,
			                        name: "redPuestoBuscaDemandanteFecFinMes",
			                        store: new Ext.data.SimpleStore({
			                        	data: Asg.Combo.monthOfYear() || [],
			                        	fields: ["id","value"]
			                        }),
			                        displayField: "value",
			                        valueField: "id"
			                	},{
			                		xtype: "combo",
			                		width: 55,
			                		name: "redPuestoBuscaDemandanteFecFinAnio",
			                        store: new Ext.data.SimpleStore({
			                        	data: Asg.Combo.yearsAgo() || [],
			                        	fields: ["anio"]
			                        }),
			                        displayField: "anio",
			                        valueField: "anio"	                	
		                    	}]
			                },{
			                	xtype: "combo",
			                	vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
			                	name: "ctgMotivoRetiro.ctgCatalogoId",
			                	id: "ctgMotivoRetiro",
			                	fieldLabel: "Motivo de Retiro",
			                	labelWidth: 150,
			                	flex: 1,
			                	afterLabelTextTpl: Asg.constants.REQUIRED,
			                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			                	allowBlank:false,
					    	  	value: config.demandante.ctgOficinaId,
					    	  	store: new Ext.data.SimpleStore({
					    	  		data: config.catalogos.ctgMotivoRetiro || [],
					    	  		fields: ["id","value"]
					    	  	}),
					    	  	valueField: "id",
					    	  	displayField: "value"
					       },{
					    	   xtype: "textarea",
					    	   vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
					    	   name: "redPuestoBuscaDemandanteFuncion",
					    	   fieldLabel: "Funci\u00F3n Principal",
					    	   labelWidth: 150,
					    	   afterLabelTextTpl: Asg.constants.REQUIRED,
					    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
					    	   allowBlank:false,
					    	   flex: 1
					       },{
			                	xtype: "fieldcontainer",
			                	layout: "hbox",
			                    items: [{
		    	                	xtype: "combo",
		    	                	name: "redPuestoBuscaDemandanteTipoContrato",
		    	                	fieldLabel: "Tipo Contrato",
		    	                	labelWidth: 150,
		    	                	width: 275,
		    	                	afterLabelTextTpl: Asg.constants.REQUIRED,
		    	                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
		    	                	allowBlank:false,
		    			    	  	store: new Ext.data.SimpleStore({
		    			    	  		data: [["1","PERMANENTE"],["2","TEMPORAL"]],
		    			    	  		fields: ["id","value"]
		    			    	  	}),
		    			    	  	valueField: "id",
		    			    	  	displayField: "value",
		    			    	  	 listeners: {
							    		   beforerender: function(combo){
							    			   combo.setValue(1);
							    		   }
							    	   }
		    			       },{
			                    	xtype: "textfield",
			                    	vtype:'nrc', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
				                	name: "redPuestoBuscaDemandanteHoras",
				                	fieldLabel: "Horas Laborales",
			                		allowBlank: false,
			                		afterLabelTextTpl: Asg.constants.REQUIRED,
			                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			                		width: 275,
			                		labelWidth: 125
		                		}]
		                	},{
			                	xtype: "textfield",
			                	vtype:'letra', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
			                	name: "redPuestoBuscaDemandanteJefe",
			                	fieldLabel: "Jefe Inmediato",
		                		allowBlank: false,
		                		afterLabelTextTpl: Asg.constants.REQUIRED,
		                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
		                		width: 300,
		                		labelWidth: 150
			                },{
		                    	xtype: "textfield",
		                    	vtype:'telefono', //01-10-2012 Agregado por Ricardo Ardon, validacion solo letras, EDC
			                	name: "redPuestoBuscaDemandanteTelefono",
			                	fieldLabel: "T\u00E9lefono de Oficina",
		                		allowBlank: false,
		                		afterLabelTextTpl: Asg.constants.REQUIRED,
		                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
		                		width: 250,
		                		labelWidth: 150,		                			                		
	        	        		maxLength: 9
		            		}
		                ]
	                },{
	                	xtype: "fieldset",
	                	title: "Experiencia Demandante",
	                	id: "flsExperienciaDemandante",
	                	width: 650,
		        		defaults: Asg.Form.defaults({anchor: "100%",align: "center"}),
	                	items:[{
	                		xtype: "grid",
	                		id: "gridExperienciaDemandante",
	                		heigth: 200,
	                		width: "100%",
	                		store: new Ext.data.SimpleStore({
				    			fields: [
									"redPuestoBuscaDemandanteId",
									"redDemandanteFolio",
									"redPuestoBuscaDemandanteSalario",
									"redPuestoBuscaDemandanteExperiencia",
									"redPuestoBuscaDemandanteActual",
									"redPuestoBuscaDemandanteEmpresa",
									"redPuestoBuscaDemandanteFecIniMes",
									"redPuestoBuscaDemandanteFecIniAnio",
									"redPuestoBuscaDemandanteFecFinMes",
									"redPuestoBuscaDemandanteFecFinAnio",
									"ctgMotivoRetiroId",
									"redPuestoBuscaDemandanteHoras",
									"redPuestoBuscaDemandanteJefe",
									"redPuestoBuscaDemandanteTelefono",
									"redPuestoBuscaDemandanteFuncion",
									"redPuestoBuscaDemandanteTipoContrato",
									"ocupacionNombre",
									"ocupacionCodigo"
								],
								data: config.redPuestoDemandanteList || []
				    		}),
				    		columns: [
						          {
									   xtype: "actioncolumn",
									   width: 30,
									   hidden: false,
									   items: [
								        {
								     	   icon: Asg.constants.CONTEXT_PATH + "/resources/images/delete.png", 
								     	   iconCls: "icon", 
								     	   handler: function(grid, rowIndex, colIndex) {
								     		  RedDemandante.confirmProcess(grid, rowIndex, "redPuestoBuscaDemandanteId");
								     	   }
								        },{
								        	icon: Asg.constants.CONTEXT_PATH + "/resources/images/edit.png", 
								        	iconCls: "icon", 
								        	handler: function(grid, rowIndex, colIndex) {
								        		
								     	   	}
								        }
								    ]
								  },
						          {header: "Puesto", dataIndex: "ocupacionNombre", flex: 1},
						          {header: "Salario", dataIndex: "redPuestoBuscaDemandanteSalario", flex: 1},
						          {header: "Experiencia", dataIndex: "redPuestoBuscaDemandanteExperiencia", renderer: "webToYes"}
						          
					        ],
					        tbar: [
				               "->",
				               {
				            	   text: "Nuevo",
				            	   iconCls: Asg.constants.ADD_ICON,
				            	   handler: function(){
				            		   RedDemandante.resetFormDetails("formPuestoBuscaExperiencia");
				            	   }
				               },{
				            	   text: "Guardar",
				            	   iconCls: Asg.constants.SAVE_ICON,
				            	   handler: function(){
				            		   RedDemandante.saveDetails("formPuestoBuscaExperiencia","gridExperienciaDemandante");
				            	   }
				               }
				            ],
				    		width: 605,
				    		height: 200,
				    		colspan: 2
	                			
	                	}]
	                }]
	        	}]
			};
		},
		condicionesIncorporacion: function(config){
			return{
				xtype: "form",
				id: "formDisposicionDemandante",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			}, 
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items:[{
	        		xtype: "fieldset",
	        		title: "CONDICIONES DE INCORPORACION", 
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
	                	xtype:"checkboxgroup",
                		fieldLabel: "Dispuesto a",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		labelWidth: 150,
                		flex: 1,
                		columns: 1,
//                		cls: 'x-check-group-alt',
        	            vertical: true,
        	        	defaults: {
        	        		style: "margin-right:15px"
        	        	},
                		items: config.redDisposicionDemandante
	                },{
	                	xtype: "combo",
	                	name: "ctgTipoContrato.ctgCatalogoId",
	                	id: "ctgTipoContrato",
	                	fieldLabel: "Tipo de Contrato",
	                	colspan: 2,
			    	   	width: 410,
			    	   	labelWidth: 150,
			    	   	columWidth: 410,
			    	   	afterLabelTextTpl: Asg.constants.REQUIRED,
			    	   	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			    	   	allowBlank:false,
			    	   	value: config.demandante.ctgTipoContratoId,
			    	   	store: new Ext.data.SimpleStore({
			    	   		data: config.catalogos.ctgTipoContrato || [],
			    	   		fields: ["id","value"]
			    	   	}),
			    	   	valueField: "id",
			    	   	displayField: "value",
			    	   	listeners: {
				    		   beforerender: function(combo){
				    			   combo.setValue(177);
				    		   }
				    	   }
	                },{
	                	xtype: "combo",
	                	name: "ctgJornada.ctgCatalogoId",
	                	id: "ctgJornada",
	                	fieldLabel: "Jornada",
	                	colspan: 2,
			    	   	width: 410,
			    	   	labelWidth: 150,
			    	   	columWidth: 410,
			    	   	afterLabelTextTpl: Asg.constants.REQUIRED,
			    	   	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			    	   	allowBlank:false,
			    	   	value: config.demandante.ctgJornadaId,
			    	   	store: new Ext.data.SimpleStore({
			    	   		data: config.catalogos.ctgJornada || [],
			    	   		fields: ["id","value"]
			    	   	}),
			    	   	valueField: "id",
			    	   	displayField: "value",
			    	   	listeners: {
				    		   beforerender: function(combo){
				    			   combo.setValue(173);
				    		   }
				    	   }
	                }]
	        	}]
			};
		},
		monitoreoBusqueda: function(config){
			return {
				xtype: "form",
				id: "formMonitoreoBusqueda",
				border: false,
				frame: true,
				bodyPadding: "5 5 5 5",
				layout: {
					type: "table",
					columns: 2,
					tableAttrs: {
			            style: {width: "615px", "margin-top": "5px;"},
			            align: "center"
					}
				},
				defaults: Asg.Form.defaults({labelAlign: "top", width: 300}),
				items: [
					{xtype: "label", text: "- Medios para busqueda de empleo -", cls: "x-form-item", style: "text-align: center; font-weight: bold"},
					{xtype: "label", text: "- Como se entero de la existencia de RED? -", cls: "x-form-item", style: "text-align: center; font-weight: bold"},
					{
						xtype:"checkboxgroup",
                		flex: 1,
                		columns: 1,
                		vertical: true,
        	        	defaults: {
        	        		style: "margin-right:15px"
        	        	},
                		items: config.redMedioBusquedaDemandante
					},
					{
						xtype:"checkboxgroup",
						flex: 1,
						columns: 1,
						vertical: true,
						defaults: {
							style: "margin-right:15px"
						},
						items: config.redExistenciaDemandante
					}
				]
			};
		},
		finalizarPasos: function(){
			return {
				xtype: "form",
				id: "paso",
				bodyPadding: "5 5 5 5",
	 			frame: true,
	 			autoScroll:true,
	 			fieldDefaults:{
	 				msgTarget: 'qtip'
	 			}, 
	 			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "550px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 550, labelAlign: "rigth"}),
	        	items:[{
	        		html: "Finalizar registro demandante"
	        	}]
			};
        	
		}
		
	};
}();